package com.kuang.service;

import com.kuang.dao.CandidateMapper;
import com.kuang.pojo.Candidate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CandidateServiceImpl implements CandidateService {

    @Autowired
    private CandidateMapper CandidateMapper;

    public void setCandidateMapper(com.kuang.dao.CandidateMapper candidateMapper) {
        CandidateMapper = candidateMapper;
    }

    public Candidate getCByUid(int UserId) {
        return CandidateMapper.getCByUid(UserId);
    }

    public void addCandidate(Candidate Candidate) {
        CandidateMapper.addCandidate(Candidate);
    }

    public int isOneTEL(String TEL) {
        return CandidateMapper.isOneTEL(TEL);
    }

    public int isOneID(String IDNUM) {
        return CandidateMapper.isOneID(IDNUM);
    }
}
